package com.xmz.vo;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.Pattern;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserVo {
    private Integer id;
    private String name;
    @Min(value = 1)
    @Max(value = 188)
    private Integer age;

    private String password;
    @Pattern(regexp = "^1[3-9]\\d{9}$")
    private String phone;

    private String orderName;
    @Min(value = 1)
    @Max(value = 188)
    private Integer count;
    @Min(value = 1)
    @Max(value = 1880)
    private Float price;
    @Min(value = 0)
    @Max(value = 1)
    private Integer state;
}
